package com.zkas.canalefectivo;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

// no anda todavia. No llega
public class QRCodeActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent intent = getIntent();
		// usuario y password.
		String message = intent.getStringExtra(BillsActivity.ENCODE_DATA);
		setContentView(R.layout.activity_qrcode);

    	/*
    	QRCodeWriter writer = new QRCodeWriter();
    	BitMatrix bitMatrix = null;
    	try {
    	    bitMatrix = writer.encode("HTTP://WWW.GOOGLE.COM", BarcodeFormat.QR_CODE, 300, 300);
    	    MatrixToImageWriter.writeToFile(bitMatrix, "gif", new File("C:\\output.gif"));
    	    } catch (WriterException e){
    	        e.printStackTrace();
    	    } catch (IOException e){
    	        e.printStackTrace();
    	    }
    	*/
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.qrcode, menu);
		return true;
	}

}
